
import request from '@/utils/request'

export async function saveCustomer(data) {
    const resp = await request.post(`/e/customer/add`, data)
    return resp.data
}

export async function getSmsCode(data) {
    const d = {
        company: 'ls',
        phone: data.phone
    }
    const resp = await request.post(`/e/sms/sendVerifyCode`, d)
    return resp.data
}
export async function isVerification(data) {
    const resp = await request.get(`/e/sms/getOnSms?type=${data.type}&company=syq`)
    return resp.data
}

export async function yiDunProtector(data) {
    const d = { ...data }
    data.company = 'syq'
    const resp = await request.post(`e/customer/wyDun`, data)
    return resp.data
}